// Filename: app.js
define([
    'jquery',
    'underscore',
    'backbone',
    'router' // Solicita router.js
], function($, _, Backbone, Router) {
    
    $.ajaxSetup({
        statusCode: {
            401: function() {
                // Redirec the to the login page.
                window.location.replace('#login');

            },
            403: function() {
                // 403 -- Access denied
                window.location.replace('#denied');
            }
        }
    });
    var initialize = function() {
        Router.initialize();// Passamos Router como parametro y lo inicializamos
    };
    return {
        initialize: initialize
    };
});
